<?php /* Smarty version 2.6.18, created on 2012-02-06 15:03:19
         compiled from login/form.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'login/form.tpl', 9, false),)), $this); ?>
<form name="loginForm" id="loginForm" method="post" onsubmit="return actionLogin(this);" enctype="multipart/form-data" action="<?php echo @HOST_VFRIEND; ?>
index/login">
    <input type="hidden" name="ptypelogin" id="ptypelogin" value="1"/>
    <input type="hidden" name="ppassword" id="ppassword" class="text"/>
    <?php if (isset ( $this->_tpl_vars['type_err'] )): ?>
    	<input type="hidden" name="pemail" value="<?php echo $this->_tpl_vars['objUser']->email; ?>
" id="pemail" class="text"/>
    <?php else: ?>
        <div class="userInput">
            <label for="pemail" class="text">Email đăng nhập:</label>
            <input type="text" name="pemail" value="<?php if (isset ( $_SESSION['uemail'] )): ?><?php echo ((is_array($_tmp=$_SESSION['uemail'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php elseif (isset ( $this->_tpl_vars['ckEmail'] ) && $this->_tpl_vars['ckEmail'] != ''): ?><?php echo $this->_tpl_vars['ckEmail']; ?>
<?php endif; ?>" id="pemail" class="text"/>
        </div>
    <?php endif; ?>
    <div class="userInput">
        <label for="ppassword" class="text">Mật khẩu:</label>
        <input type="password" name="ppassword_type" id="ppassword_type" value="<?php if (isset ( $_COOKIE['LOGIN_PASS'] ) && $_COOKIE['LOGIN_PASS'] != '' && isset ( $this->_tpl_vars['ckRemember'] ) && $this->_tpl_vars['ckRemember'] == 1): ?><?php echo $_COOKIE['LOGIN_PASS']; ?>
<?php endif; ?>" class="text"/>
    </div>
    <div class="userInput">
        <input type="checkbox" name="prememberme" id="prememberme" class="chk" <?php if (isset ( $this->_tpl_vars['ckRemember'] ) && $this->_tpl_vars['ckRemember'] == 1): ?>checked="checked"<?php endif; ?>/>
        <label for="prememberme" class="chk">Tự động đăng nhập</label>
   	</div>
    <div class="userInput<?php if (isset ( $this->_tpl_vars['type'] ) && $this->_tpl_vars['type'] == 1): ?> bPadding5<?php endif; ?>">
        <input type="submit" value="Đăng nhập" class="submit<?php if (isset ( $this->_tpl_vars['type'] ) && $this->_tpl_vars['type'] == 1): ?> rFloat<?php endif; ?>" />
    </div>
    <div class="userInput">
    	<?php if (isset ( $this->_tpl_vars['type'] ) && $this->_tpl_vars['type'] == 1): ?>
        	<a href="<?php echo @LINK_INDEX_FORGET_PASSWORD; ?>
" class="forget-password">Quên mật khẩu</a>
            <a href="<?php echo @LINK_INDEX_GETCODE_ACCOUNT; ?>
">Nhận lại mã kích hoạt</a>
        <?php else: ?>
        	<a href="<?php echo @LINK_INDEX_FORGET_PASSWORD; ?>
" class="forget-password">Quên mật khẩu</a> - <a href="<?php echo @LINK_INDEX_GETCODE_ACCOUNT; ?>
">Nhận lại mã kích hoạt</a>
        <?php endif; ?>
    </div>
</form>